<!DOCTYPE html>
<html>
<head>
    <title>路段角色表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("baseinfo:lhpwaysectrole:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("baseinfo:lhpwaysectrole:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
            <a class="btn btn-primary" @click="relationWaysect"><i class="fa fa-pencil-square-o"></i>&nbsp;关联路段</a>
            <a class="btn btn-primary" @click="relationUser"><i class="fa fa-pencil-square-o"></i>&nbsp;关联用户</a>
			<#if shiro.hasPermission("baseinfo:lhpwaysectrole:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">路段角色名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.waysectRoleName" placeholder="路段角色名称"/>
                        </div>
                    </div>

											                   <!-- <div class="form-group">
                        <div class="col-sm-2 control-label">路段中心点 经度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.xGps" placeholder="路段中心点 经度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">路段中心点 纬度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.yGps" placeholder="路段中心点 纬度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.xBaidu" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.yBaidu" placeholder=""/>
                        </div>
                    </div>-->
					<div class="form-group">
                        <div class="col-sm-2 control-label">高德坐标经度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.xgaode" placeholder="高德坐标经度"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">高德坐标纬度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.ygaode" placeholder="高德坐标纬度"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">地图缩放等级</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="lhpWaysectRole.zoomLevel" placeholder="地图缩放等级"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否启用</div>
                        <label class="radio-inline">
                            <input type="radio" name="isActive" value="0" v-model="lhpWaysectRole.isActive"/> 正常
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="isActive" value="1" v-model="lhpWaysectRole.isActive"/> 禁用
                        </label>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<!-- 选择路段 -->
<div id="waysectLayer" style="display: none;padding:10px;">
    <ul id="waysectTree" class="ztree"></ul>
</div>
<!-- 用户 -->
<div id="userLayer" style="display: none;padding:10px;">
    <ul id="userTree" class="ztree"></ul>
</div>

<script src="${request.contextPath}/statics/js/modules/baseinfo/lhpwaysectrole.js?_${.now?long}"></script>
</body>
</html>